import { findHeadCategory } from '@/api/home'
export default {
  namespaced: true,
  state: () => ({
    list: []
  }),
  mutations: {
    setList (state, list) {
      state.list = list
    }
  },
  actions: {
    async asyncList (cxt) {
      const res = await findHeadCategory()
      console.log(res)
      cxt.commit('setList', res.data.result)
    }
  }
}
